#!/bin/bash

cp ./config/hadoop-env.sh /opt/hadoop-all/hadoop/etc/hadoop/hadoop-env.sh
cp ./config/hdfs-site.xml $HADOOP_HOME/etc/hadoop/hdfs-site.xml 
cp ./config/core-site.xml $HADOOP_HOME/etc/hadoop/core-site.xml


cp ./config/hive-site.xml /opt/hadoop-all/hive/conf/

cp ./config/server.properties /opt/hadoop-all/kafka/config


cp ./config/hbase-site.xml $HBASE_HOME/conf/
cp ./config/hbase-env.sh $HBASE_HOME/conf/


cp ./config/flume-env.sh $FLUME_CONF_DIR
cp ./config/flume-to-spark.conf $FLUME_CONF_DIR


cp ./config/spark-env.sh /opt/hadoop-all/spark/conf
cp ./config/slaves /opt/hadoop-all/spark/conf


source /etc/profile
rm -rf ~/.bash_history

history -c